package com.midcode;

import com.parser.program;

public class Endlabel {
	public static int endLabelPtr=0;
	public static int stackPtr=0;
	public Endlabel(){
		program.endLabel= new String("LEND"+endLabelPtr);
		endLabelPtr++;
	}
	public static void push(String label){
		program.endLabelStack.add(label);
		stackPtr++;
	}
	public static String pop(){
		return program.endLabelStack.get(--stackPtr);
	}
}
